<?php $ArProfiles = Dracosys::getSessionValue(SESSION_INTERFACE, 'ProfileList'); ?>
<section id="ProfileList">
<h2>Listagem de Perfis</h2>
    <table id="ProfileList_profiles" class="list">
        <thead>
            <tr>
                <th>Perfil</th>
                <th>Fun&ccedil;&atilde;o</th>
                <th>Visualizar</th>
                <th>Editar</th>
                <th>Deletar</th>
            </tr>
        </thead>
        <tfoot>
        </tfoot>
        <tbody>
            <?php foreach($ArProfiles as $Profile): ?>
                <tr>
                    <td><?=$Profile->getStPerfil()?></td>
                    <td><?=$Profile->getFuncao()->getStNome()?></td>
                    <td>
                        <a href="<?=DRA_URL?>perfil/visualizar-perfil/id/<?=$Profile->getIDPerfil()?>"  title="Visualizar">
                            <img src="<?= DRA_VIEW_URL ?>images/descricao.png" />
                        </a>
                    </td>
                    <td>
                        <a href="<?=DRA_URL?>perfil/editar-perfil/id/<?=$Profile->getIDPerfil()?>" title="Editar">
                            <img src="<?= DRA_VIEW_URL ?>images/edit.png" alt="Editar" />
                        </a>
                    </td>
                    <td>
                        <a href="<?=DRA_URL?>perfil/excluir-perfil/id/<?=$Profile->getIDPerfil()?>" title="Excluir">
                            <img src="<?= DRA_VIEW_URL ?>images/delete.png" alt="Editar" />
                        </a>
                    </td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    <div class="insertInList">
        <a href="<?=DRA_URL?>perfil/cadastrar-perfil" class="insertIcon">Cadastrar novo Perfil</a>
    </div>
</section>

